package cc.loach.homekit.hap.controlled.device.loach._lightbulb._light._accessoryinformation.properties;

import java.util.function.Function;


import cc.loach.homekit.hap.typedef.accessory.HapCharacteristic;
import cc.loach.xiot.spec.definition.property.Access;
import cc.loach.xiot.spec.definition.property.data.DataFormat;
import cc.loach.xiot.spec.definition.urn.PropertyType;

import io.vertx.core.Future;


/**
 * Property: 認證
 */
public class Identify extends HapCharacteristic<Boolean> {

    public static final int IID = 2;
    public static final String TYPE = "urn:homekit-spec:property:identify:00000014:loach:light:1";

    public Identify() {
        super(IID, new PropertyType(TYPE), new Access(true, false, false), DataFormat.BOOL);
        
    }


    public Identify doSet(Function<Boolean, Future<Void>> setter) {
        this.setter = setter;
        return this;
    }

}
